package one.stand.service.user;

import one.stand.dto.UserDto;
import one.stand.model.User;

public interface UserAdminService {
    /**
     * 公众号流程状态：0 其他途径 1 公众号 2绑定手机号 3 App登录
     */
    int GZH_STATE_NORMAl = 0;
    int GZH_STATE_GZH = 1;
    int GZH_STATE_PHONE = 2;
    int GZH_STATE_APP = 3;

    String DEFAULT_NAME = "访客";
    String DEFAULT_IMG = "https://file.hongmushichang.com/header.png";

    void updateUserRoleId(Integer userId, Integer roleId);

    void updatePhoneGzh(Integer userId, String phone);

    User getByUserId(Integer userId);

    /**
     * 是否访客
     */
    boolean isVisit(String avatarUrl);

    String decode(String nickName);

    String getOpenId(Integer userId, Integer clientType, String companyKey);

    UserDto get(Integer userId);
}
